<?php
require_once 'AbstractBuilder.php';
require_once 'product/SetMealA.php';
require_once 'product/BlackTea.php';
require_once 'product/ChickenRolls.php';
require_once 'product/ChickenWings.php';
require_once 'product/EggTart.php';
use example\builder\product\SetMealA;
use example\builder\product\BlackTea;
use example\builder\product\ChickenRolls;
use example\builder\product\ChickenWings;
use example\builder\product\EggTart;
/**
 * 具体建造者A
 * Class ConcreteBuilderA
 * 套餐A
 */
class ConcreteBuilderA extends AbstractBuilder
{
    protected $setMealA;
    public function createSetMeal()
    {
        $this->setMealA = new SetMealA();
    }
    public function getSetMeal()
    {
        return $this->setMealA;
    }
    /**
     * 红茶
     */
    public function addBlackTea()
    {
        $this->setMealA->setPart("blackTea",new BlackTea());
    }
    /**
     * 鸡肉卷
     */
    public function addChickenRolls()
    {
        $this->setMealA->setPart("chickenRolls",new ChickenRolls());
    }
    /**
     * 鸡翅
     */
    public function addChickenWings()
    {
        $this->setMealA->setPart("chickenWings",new ChickenWings());
    }
    /**
     * 蛋挞
     */
    public function addEggTart()
    {
        $this->setMealA->setPart("eggTart",new EggTart());
    }
    public function addCoffee()
    {
        // TODO: Implement addCoffee() method.
    }
    public function addCola()
    {
        // TODO: Implement addCola() method.
    }
    public function addFrenchFries()
    {
        // TODO: Implement addFrenchFries() method.
    }
    public function addHamburger()
    {
        // TODO: Implement addHamburger() method.
    }
    public function addTeaWithMilk()
    {
        // TODO: Implement addTeaWithMilk() method.
    }
}
